package Test;

import java.io.File;
import java.io.IOException;

public class test2 {
    public static void main(String[] args) throws IOException {
        File f1 = new File("D:\\图片视频音乐\\Documents\\OneDrive\\桌面\\test\\aa.txt");
        boolean s = f1.createNewFile();
        System.out.println(s);

        File f2 = new File("D:\\图片视频音乐\\Documents\\OneDrive\\桌面\\test\\bb");
         s = f2.delete();
        System.out.println(s);

    }
}
